import request from '@/utils/request'

// 查询工资列表
export function listWage(query) {
  return request({
    url: '/md/wage/list',
    method: 'get',
    params: query
  })
}

// 查询工资详细
export function getWage(wageId) {
  return request({
    url: '/md/wage/' + wageId,
    method: 'get'
  })
}

// 新增工资
export function addWage(data) {
  return request({
    url: '/md/wage',
    method: 'post',
    data: data
  })
}

// 修改工资
export function updateWage(data) {
  return request({
    url: '/md/wage',
    method: 'put',
    data: data
  })
}

// 删除工资
export function delWage(wageId) {
  return request({
    url: '/md/wage/' + wageId,
    method: 'delete'
  })
}
